package com.jlg.beans.group;

import com.julewa.db.DB;
//如何使页面静态化,则是性能的关键
//所以,应该将动态部分与静态部分分开
//所以,最佳策略是这部分数据是ajax二次获取的.
public class GroupTopicBean {
	@DB.KEY long groupId;
	@DB.KEY long topicId;
	@DB.COLUMN long authorId;
	@DB.COLUMN String authorName;
	@DB.COLUMN String title;
	//不同类型的帖子使用不同的模板,这样就可以做不同的调查之类的了
	//根据类型不同有缺省名称
	@DB.COLUMN String content; 
	//
	@DB.COLUMN int type;//灌水,百科,问答,召集,调查...
	@DB.COLUMN int state;//new,open,close...
	
	@DB.COLUMN long createDate;


	public long getGroupId() {
		return groupId;
	}

	public void setGroupId(long groupId) {
		this.groupId = groupId;
	}

	public long getTopicId() {
		return topicId;
	}

	public void setTopicId(long topicId) {
		this.topicId = topicId;
	}

	public long getAuthorId() {
		return authorId;
	}

	public void setAuthorId(long authorId) {
		this.authorId = authorId;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	public int getState() {
		return state;
	}

	public void setState(int state) {
		this.state = state;
	}

	public long getCreateDate() {
		return createDate;
	}

	public void setCreateDate(long createDate) {
		this.createDate = createDate;
	}

}
